﻿using MediatR;
using S.Authorization.Common;
using S.Authorization.Common.Dto;
using S.Authorization.Domain.Model.User;

namespace S.Authorization.Read.API.Application.Command.UserCommand
{
    /// <summary>
    /// 人员管理显示
    /// </summary>
    /// <param name="userName">员工姓名</param>
    /// <param name="departmentId">所在部门</param>
    /// <param name="state">员工状态</param>
    /// <returns></returns>
    public class UserGetAllPageCommand:IRequest<Pager<GetUserListDto>>
    {
        public int PageIndex { get; set; }

        public int PageSize { get; set; }

        public string? UserName { get; set; }

        public int DepartmentId { get; set; }
        public int State { get; set; }
    }
    public class GetUserCommand : IRequest<UsersModel>
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public int ID { get; set; }
    }

}
